package com.gujiangbo.test;

import com.gujiangbo.aop.CalcService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.SpringVersion;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @Author: gujiangbo.co
 * @Contact: 646832012@qq.com
 * @Date: 2022/3/16 13:58
 * @Version: 1.0
 * @Description:
 */
@SpringBootTest
@RunWith(SpringRunner.class)
public class JavaSpringAop {

    @Resource
    private CalcService calcService;

    @Test
    public void testAop() {
        System.out.println("Spring Version:" + SpringVersion.getVersion() + ", SpringBoot Version:" + SpringBootVersion.getVersion());
        System.out.println(calcService.div(10, 3));
    }
}
